#include "globals.h"

#include "sw_sprite.h"

sw_sprite::sw_sprite(uint16 flags) {
	_flags = flags;
}

sw_sprite::~sw_sprite() {

}

void sw_sprite::set_bodies(b2Body** bodies, int n) {
	_bodies = new b2Body*[n];
	for (int i=0; i<n; i++) {
		_bodies[i] = bodies[i];
	}
}

void sw_sprite::compute_time_step() {
	//vel_x += (force_x-air_resistance*vel_x) / mass / global_frames_per_second;
	//vel_y += ((force_y-air_resistance*vel_y)/mass) / global_frames_per_second;
	////vel_y += ((force_y-air_resistance*vel_y)/mass + grav_accel) / global_frames_per_second;
	//pos_x += vel_x / global_frames_per_second;
	//pos_y += vel_y / global_frames_per_second;
}

b2Body* sw_sprite::get_body(int i) {
	return _bodies[i];
}

void sw_sprite::draw_on_screen(float topleftx, float toplefty) {

}